<table class="articles liens">
<tr>
<?php $i=1;$nbColumn=2;$count = count($this->parties);$nbByColumn=ceil($count / $nbColumn)?>
<?php foreach ($this->parties as $partie) : ?>
<?php if ($i % $nbByColumn == 1): ?><td><?php endif ?>
	
	<fieldset>
	<legend><?= $this->reformatText($partie->getArticle()->text) ?></legend>
	<ul>
	<?php foreach ($partie->getLiens() as $lien) : ?>
		<li class="<?=$lien->class?>"><a href="<?=$lien->url?>" title="<?=$this->reformatText($lien->titre)?>" class="external"><?=$this->reformatText($lien->text)?></a></li>
	<?php endforeach; ?>
	</ul>
	</fieldset>
	
<?php if ($i % $nbByColumn == 0 || $i == $count): ?></td><?php endif ?>
<?php $i++;?>
<?php endforeach; ?>
</tr>
</table>